import API from '@/axios/APIConfig';

export default {

  getList(params, response){
      new API({
          method: 'get',
          url: `/job/findJobList`,
          params: params,
          response: response,
          allResData: false,
          needTips: false,
      })
  },
  triggerJob(params,response) {
    new API({
      url: '/job/trigger',
      method: 'post',
      params: params,
      response: response,
    })
  },
  runOrStopJob(params,response) {
    new API({
      url: '/job/runOrStopJob',
      method: 'post',
      params: params,
      response: response,
    })
  },
  editJob(params,response) {
    new API({
      url: '/job/editJob',
      method: 'post',
      params: params,
      response: response,
    })
  },
  addJob(params,response) {
    new API({
      url: '/job/addJob',
      method: 'post',
      params: params,
      response: response,
    })
  },
  removeJob(params,response) {
    new API({
      url: '/job/removeJob',
      method: 'post',
      params: params,
      response: response,
    })
  },
  validateJobNameRepeat(params,response) {
    new API({
      url: '/job/validateJobNameRepeat',
      method: 'get',
      params: params,
      response: response,
    })
  },
 
}

